public class method2 {
    public static void main(String[] args) {
        sum(10,20);
        sum(20,30);
        sum(30,40);
    }
    public static void sum(int num1,int num2){
        int result=num1+num2;
        System.out.println(result);
    }
}
